package com.mingqijia.gassafety.db.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.mingqijia.gassafety.db.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.mingqijia.gassafety.db.entity.annotation.OperateLogFiled;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 电磁阀信息表
 * </p>
 *
 * @author li.shiying
 * @since 2023-08-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_gss_valve_info")
@ApiModel(value="ValveInfo对象", description="电磁阀信息表")
public class ValveInfo extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键id")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @OperateLogFiled(name = "电磁阀名称" )
    @ApiModelProperty(value = "电磁阀名称")
    @TableField("valve_name")
    private String valveName;

    @OperateLogFiled(name = "电磁阀型号")
    @ApiModelProperty(value = "电磁阀型号")
    @TableField("valve_model")
    private String valveModel;

    @OperateLogFiled(name = "电磁阀材质")
    @ApiModelProperty(value = "电磁阀材质")
    @TableField("valve_material")
    private String valveMaterial;

    @OperateLogFiled(name = "电磁阀厂家",dict = "solenoid_valve_manufacturer")
    @ApiModelProperty(value = "电磁阀厂家")
    @TableField("valve_manufacturer")
    private String valveManufacturer;

    @OperateLogFiled(name = "电磁阀有效期")
    @ApiModelProperty(value = "电磁阀有效期 年")
    @TableField("valve_validity")
    private Integer valveValidity;

    @OperateLogFiled(name = "说明")
    @ApiModelProperty(value = "说明")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "企业编号")
    @TableField("sp_id")
    private String spId;


}
